﻿namespace WhaleAccount.Models;
public class TypeSummary
{
    private double _value;

    public int Type
    {
        get; set;
    }
    public double Percent
    {
        get; set;
    }
    public List<Record>? Records
    {
        get; set;
    }

    public double Value
    {
        get => _value;
        set
        {
            var round = Math.Round(value, 2);
            if (_value != round)
            {
                _value = round;
            }
        }
    }
}
